package statemachine.fsm;

public class MonsterAi implements Runnable {

    private ObjectBehaveStateEnum currentState;

    @Override
    public void run() {
        if (currentState != null) {
            this.currentState = currentState.getAbstractState().doUpdate();
        } else {
            currentState = ObjectBehaveStateEnum.GO_HOME_STATE;
        }
    }
}
